package com.chatplus.application.domain.entity.basedata;

import com.baomidou.mybatisplus.annotation.*;
import com.chatplus.application.datasource.id.IdEntity;
import org.apache.ibatis.type.Alias;

import java.time.Instant;


/**
 * <p>Table: t_api_keys- OpenAI API </p>
 *
 * @author developer
 */
@Alias("apiKey")
@TableName(value = "t_api_key", autoResultMap = true)
public class ApiKeyEntity extends IdEntity {

    /**
     * 平台
     */
    private String platform;
    /**
     * API KEY value
     */
    private String value;
    /**
     * 用途（chat=>聊天，img=>图片）
     */
    private String type;
    /**
     * 最后使用时间
     */
    private Instant lastUsedAt;

    public String getPlatform() {
        return this.platform;
    }

    public void setPlatform(String platform) {
        this.platform =  platform;
    }

    public String getValue() {
        return this.value;
    }

    public void setValue(String value) {
        this.value =  value;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type =  type;
    }

    public Instant getLastUsedAt() {
        return this.lastUsedAt;
    }

    public void setLastUsedAt(Instant lastUsedAt) {
        this.lastUsedAt =  lastUsedAt;
    }

}
